import App from './App'

// ------------uv-ui
import uvUI from '@climblee/uv-ui'
import api from './public/api.js'
import pageHead from './components/page-head.vue'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.prototype.apifun = api;
Vue.prototype.URLimg = api.URLimg;
Vue.config.productionTip = false;
Vue.component('page-head', pageHead);
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App);
  app.use(uvUI);
  app.use(api);
  app.component('page-head', pageHead);
  return {
    app
  }
}
// #endif

// #ifndef VUE3
Vue.use(uvUI);
// #endif
